Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter in pumps #1546

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Filter in pumps #1546

wants to merge 4 commits into from

Conversation

galyfray
Copy link
Contributor

@galyfray galyfray commented Mar 23, 2021

What:
Added support for liquid filters in pumps (machines)

How solved:
Added a fluid filter widget to the UI, check for liquid type when adding them to the queue and just before pumping the block (to avoid bug in case of block replacement or filter update). Invalidate the queue when switching filter from black/whitelist to white/blacklist and removing/adding the filter.

Outcome:
Closes #1532. Adds a Fluid Filter slot to the pump

Additional info:
Screenshots of UI :
screenshot
screenshot2
Possible compatibility issue:
None Expected.

Copy link
Member

@LAGIdiot LAGIdiot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your hard work. There are few areas which needs adjustment and one big question regarding performance

@LAGIdiot LAGIdiot added rsr: revision Release size requirements: Revision type: feature New feature or request labels Mar 31, 2021
@galyfray galyfray requested a review from LAGIdiot May 13, 2021 11:48
@ALongStringOfNumbers
Copy link
Collaborator

I have edited the opening comment to link the related issue, so that it will be closed when this is merged.

@galyfray
Copy link
Contributor Author

galyfray commented Jun 3, 2021

So what do you think of the current state of this PR @LAGIdiot ? is there any other changes needed or anything else ?

amountIterated++;
}
checkPos = blocksToCheck.poll();
private BlockPos getValidPos(Deque<BlockPos> posDeque) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The passed argument is unused in this method. Any reason for not removing it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a copy paste fail the arg should get used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rsr: revision Release size requirements: Revision type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Suggestion] Pump (Machine) fluid filtering
3 participants